<?php
/**
 * Language Model of the database
 * @author: Ueli Kramer <ueli.kramer@gmail.com>
 */

class Language extends Eloquent
{

    public static $table = 'language';

    public static function getActive($field = 'id')
    {
        return self::where('abbreviation', '=', Config::get('application.language'))->first()->$field;
    }

}